<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<input type="text" placeholder="请输入数量">
<input type="button" value="帅哥" onclick="f1()">
<input type="button" value="美女" onclick="f2()">
<input type="button" value="刷新" onclick="f3()">
<script>
  let i = document.querySelector("input");
  function f1() {
    location.href = i.value;
  }
  function f2() {
    setTimeout(function () {
      location.href = i.value;
    },3000);
  }
  function f3() {
    location.reload();
  }
</script>
</body>
</html>